if theType = "Check Number" then put 2 into theType
if theType = "Description" then put 3 into theType
if theType = "Amount" then put 4 into theType
ask "String to search for within this list?"
put it into theString
if theString is empty then exit mouseUP
put 1 into x
repeat for the number of lines in bg fld "thelist"
set cursor to busy
if item theType of line x of bg fld "theList" = theString then
put line x of bg fld "theList" & return after templist
end if
put x + 1 into x
end repeat
if the number of lines in templist > 2 then
put bg fld "theList" into oldList
put templist into bg fld "theList"
set scroll of bg fld "theList" to 0
set visible of cd btn "Revert" to true
else
answer "Sorry, no cross-references found..."
end if
end mouseUp
-- part 7 (button)
-- low flags: 80
-- high flags: A003
-- rect: left=348 top=233 right=255 bottom=454
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Revert
----- HyperTalk script -----
on mouseUp
global oldList
put oldList into bg fld "thelist"
set visible of cd btn "revert" to false
end mouseUp
-- part 9 (button)
-- low flags: 80
-- high flags: 4000
-- rect: left=36 top=200 right=213 bottom=459
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: flasher
-- part 11 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=14 top=58 right=80 bottom=36
-- title width / last selected line: 0
-- icon id / first selected line: 3860 / 3860
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: panic
----- HyperTalk script -----
on mouseUp
if the visible of bg fld "help" is true then
Zoomer 65,72,442,297,154,144,354,229
Zoomer 154,144,354,229,12,30,34,52
lock screen
hide pict of this cd
hide bg fld "help"
else
Zoomer 12,30,34,52,154,144,354,229
Zoomer 154,144,354,229,65,72,442,297
lock screen
show bg fld "help"
show pict of this cd
end if
end mouseUp
on mouseWithin
ChangeCurs 25
end mouseWithin
on mouseLeave
set cursor to hand
end mouseLeave
-- part contents for background part 13
----- text -----
MATCHES FOUND:
8/09/90,2570,State Farm,301.83,0
-- part contents for background part 20
----- text -----
Choose criteria to search by.
-- part contents for background part 19
----- text -----
State Farm, #2570, is not cleared.
-- part contents for background part 22
----- text -----
QUICK HELP FOR THIS CARD
This card contains all the checks entered into this stack. The checks are stored with the following format:
The Cleared Status tells Business Plan whether this item has cleared the bank
(a "1" means it's cleared, a "0" means it's not). If you want to change the Cleared Status of an item, click on that line. At the top of the field you will see what you have changed the status to.